from django.conf.urls import url

from . import views
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.ResgisterUserNameView.as_view()),
    url(r'^phones/(?P<mobile>1[345789]\d{9})/count/$', views.RegisterPhoneCountAPIView.as_view(), name='phonecount'),
    url(r'^$', views.RegisterCreatUserView.as_view()),
    # 登陆返回jwt
    url(r'^auths/', obtain_jwt_token),
    url(r'infos/$', views.UserCenterInfoView.as_view()),
    url(r'^emails/$', views.UserEmailView.as_view()),

    url(r'^addresses/$',views.AddressView.as_view()),
    url(r'^email/verification/$', views.UserEmailActiveView.as_view()),

]

